package com.pingpang.common.code;

import java.io.IOException;

public interface MessageCodecUtil {

    final static int MESSAGE_LENGTH = 4;

    byte[] encode(final Object message) throws IOException;

    Object decode(byte[] body,Class cls) throws IOException;
}
